#define _CRT_SECURE_NO_WARNINGS 1

#pragma once
#include <iostream>
using namespace std;

class Stack
{
public:
	void Init(int N = 4);
	void Push(int x);
private:
	int* a;
	int top;
	int capacity;
};

class Queue
{
public:
	void Init(int N = 4);
	void Push(int x);
private:
	//...
};